<!DOCTYPE html>   
<!--
==========================================================================
gin-sns自动生成新增页面代码,只生成一次,按需修改.
date：2021-02-21 13:45:54 +0800 CST
path: template/module/user/add.html
author：jon
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-user-add">     
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户名：</label>
                    <div class="col-sm-8">
                        <input name="userName" class="form-control" type="text" required>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">手机：</label>
                    <div class="col-sm-8">
                        <input name="userMobile" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">Email：</label>
                    <div class="col-sm-8">
                        <input name="userEmail" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">密码：</label>
                    <div class="col-sm-8">
                        <input name="password" class="form-control" type="text" >
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">类型：</label>
                    <div class="col-sm-8">
                        <select name="type" class="form-control m-b" >
                            <option value="">所有</option>
                        </select>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div> 
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">昵称：</label>
                    <div class="col-sm-8">
                        <input name="nickname" class="form-control" type="text" required>
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">性别1男2女3保密：</label>
                    <div class="col-sm-8">
                        <select name="sex" class="form-control m-b" >
                            <option value="">所有</option>
                        </select>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div> 
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">头像：</label>
                    <div class="col-sm-8">
                        <input name="avatar" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">工作职位：</label>
                    <div class="col-sm-8">
                        <input name="work" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">个性签名：</label>
                    <div class="col-sm-8">
                        <input name="signature" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">自我介绍：</label>
                    <div class="col-sm-8">
                        <textarea name="description" class="form-control" ></textarea>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">所在省：</label>
                    <div class="col-sm-8">
                        <input name="province" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">所在城市：</label>
                    <div class="col-sm-8">
                        <input name="city" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">所在地区：</label>
                    <div class="col-sm-8">
                        <input name="area" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">联系地址：</label>
                    <div class="col-sm-8">
                        <input name="contactAddr" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countFollower" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countFollowee" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countQuestion" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countAnswer" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countPost" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">被关注数量：</label>
                    <div class="col-sm-8">
                        <input name="countBlog" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">级别：</label>
                    <div class="col-sm-8">
                        <input name="level" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">积分：</label>
                    <div class="col-sm-8">
                        <input name="integral" class="form-control" type="text" >
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">0未审核 1正常状态 2审核未通过 3删除：</label>
                    <div class="col-sm-8">
                        <div class="radio-box">
                            <input type="radio" name="status" value="" required>
                            <label for="status" text="未知"></label>
                        </div>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div>  
                  
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript">
    var prefix = ctx + "module/user";
    $("#form-user-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-user-add').serialize());
        }
    }
                                                          
    
</script>
</body>
</html>